package core.service.impl;

import core.dao.CustomerDao;
import core.pojo.Customer;
import core.service.CustomerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;


@Service
@Transactional
public class CustomerServiceImpl implements CustomerService {

    @Autowired
    private CustomerDao customerDao;


    @Override
    public Customer findById(String cid) {
        Customer customer = customerDao.findById(cid);
        return customer;
    }
//    @Override
//    public List<Customer> findCustomer() {
//
//        return customerDao.findCustomer();
//    }
//
//    @Override
//    public void deleteById(int cid) {
//        System.out.println(cid);
//
//        customerDao.deleteById(cid);
//    }
//
//
//    @Override
//    public List<Customer> findAll() {
//       List<Customer> list =  customerDao.findAll();
//        return list;
//    }
//
//
//    @Override
//    public void save(Customer customer) {
//        customerDao.save(customer);
//    }




}
